<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">

    var resizeTimer = null;
    alert("宽度："+document.documentElement.clientWidth + " 高度："+document.documentElement.clientHeight);
    function doResize(){
        alert("新宽度："+document.documentElement.clientWidth + " 新高度："+document.documentElement.clientHeight);
        resizeTimer = null;
    }
    window.onresize = function(){
        if( resizeTimer == null) {
            resizeTimer = setTimeout("doResize()",1000);
        }
    }

</script>
</body>
</html>